package office.action.hr.form;

import office.bo.hr.IOfficesuppliesEntry;
import office.bo.hr.impl.OfficesuppliesEntry;
import platform.common.bo.IIdentifiableObj;

public class OfficesuppliesEntryForm {

	private String id;
	private String entryUser;			//申请人
	private String officesuppliesId;	//办公用品id
	private double entryNum;			//申请数量
	private String entryDate;			//申请日期
	private String descriprtion;		//描述
	private String state;				//状态
	private String checkUser;			//审核人
	public IIdentifiableObj copyPropertiesToBO(IIdentifiableObj newObj) {
		OfficesuppliesEntry bo = (OfficesuppliesEntry)newObj;
		bo.setId(id);
		//bo.setEntryUser(entryUser);
		//bo.setOfficesuppliesId(officesuppliesId);
		//bo.setEntryDate(entryDate);
		bo.setDescriprtion(descriprtion);
		//bo.setState(state);
		bo.setEntryNum(entryNum);
		bo.setCheckUser(checkUser);
		return bo;
	}
	
	public void copyPropertiesFromBO(IIdentifiableObj baseBO) {
		IOfficesuppliesEntry bo = (IOfficesuppliesEntry)baseBO;
		this.id = bo.getId().toString();
		this.entryUser = bo.getEntryUser();
		this.officesuppliesId = bo.getOfficesuppliesId();
		this.entryNum = bo.getEntryNum();
		this.entryDate = bo.getEntryDate();
		this.descriprtion = bo.getDescriprtion();
		this.state = bo.getState();
		this.checkUser = bo.getCheckUser();
	}
	public String getEntryUser() {
		return entryUser;
	}
	public void setEntryUser(String entryUser) {
		this.entryUser = entryUser;
	}
	public String getOfficesuppliesId() {
		return officesuppliesId;
	}
	public void setOfficesuppliesId(String officesuppliesId) {
		this.officesuppliesId = officesuppliesId;
	}
	public double getEntryNum() {
		return entryNum;
	}
	public void setEntryNum(double entryNum) {
		this.entryNum = entryNum;
	}
	public String getEntryDate() {
		return entryDate;
	}
	public void setEntryDate(String entryDate) {
		this.entryDate = entryDate;
	}
	public String getDescriprtion() {
		return descriprtion;
	}
	public void setDescriprtion(String descriprtion) {
		this.descriprtion = descriprtion;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCheckUser() {
		return checkUser;
	}

	public void setCheckUser(String checkUser) {
		this.checkUser = checkUser;
	}
	
}
